home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The See Clearly Method
/
TheSeeClearlyMethod.iso
/
Media
/
stub2.dir
/
00003_Script_New Behavior
< prev
next >
Wrap
Text File
|
2002-02-15
|
801b
|
26 lines
on mouseEnter me
cursor 280
end
on mouseLeave me
cursor 0
end
global myFile
on mouseUp me
if objectP(myFile) then set myFile = 0 --Delete the instance if it already exists
myFile = new(xtra "fileio") -- Create an instance of FileIO
openFile (myFile, "c:\agreed.txt",0)--Open the file with R/W access
delete(myFile) --deletes the file
createFile (myFile, "c:\agreed.txt") --creates the file again
openFile(myFile,"c:\agreed.txt",0) --Open the file with R/W access
mySaveString = member("agreed").text --puts the contents of the field 'input' into the variable mySaveString
writeString(myFile,mySaveString) --writes text to the file
closeFile(myFile) -- Close the file
myFile = 0 -- Dispose of the instance
go to movie "qtpc"
end